a11y: Avoid spurious selection changed events
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 17:23:56 +0000 (13:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 17:23:56 +0000 (13:23 -0400)
commitb97d0a394072cc71f031b80364d659dbf600e8d9
treecf0887afaac53b70452fd71f32432da41dd664e6
parent639932ad8a93157628937d03c2da72edfd853bf8
a11y: Avoid spurious selection changed events

Only send selection-changed events when we either
had a non-empty selection before, or have one now.

This should help orca speak the right things, and
not the wrong things.

Related: #3549
gtk/a11y/gtkatspitext.c